package com.jing.controller;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.jing.consumer.service.impl.TestServiceImpl;
import com.jing.service.UserService;

public class Consumer {
	public static void main(String[] args) throws Exception {
		ApplicationContext context = 
                new ClassPathXmlApplicationContext("classpath:META-INF/spring/applicationContext-mvc.xml");
		
		TestServiceImpl testService = context.getBean("testServiceImpl", TestServiceImpl.class);
		testService.test();
		System.in.read();
    }
}
